explain with placeholders? - Mailing list pgsql-general

From Dan Sugalski
Subject explain with placeholders?
Date
Msg-id a06110408bd6370b91252@[10.0.1.2]
Whole thread Raw
Responses Re: explain with placeholders?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Is there any way to convince explain to go do its thing when given a
query with placeholders in it?

I'm trying to do some performance checking of some of the queries
built into a system I'm building. The SQL's all done with
placeholders, for safety and ease of twiddling, but EXPLAIN...
EXPLAIN doesn't like them. Trying throws an "ERROR:  there is no
parameter $1" which is somewhat sub-optimal.

Any way, short of hand-replacing the placeholders with real values
(which makes me nervous since the optimizer may do things that
wouldn't be doable in the system when it was running), to get a
meaningful check on these things?
--
                Dan

--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Salt in encrypted password in pg_shadow
Next
From: Richard Huxton
Date:
Subject: Re: error: insert has more expressions than target column